package com.milotnt.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.milotnt.form.MemberQueryForm;
import com.milotnt.pojo.ClassOrderEntity;
import com.milotnt.vo.ClassOrderVo;

import java.util.List;


public interface ClassOrderService extends IService<ClassOrderEntity> {

    //查询所有报名表信息
    List<ClassOrderEntity> findAll();

    //添加报名信息
    Boolean insertClassOrder(ClassOrderEntity classOrder);

    //根据会员账号查询个人报名课表
    List<ClassOrderVo> selectClassOrderByMember(MemberQueryForm form);

    //删除已预约的课程
    Boolean deleteByClassOrderId(Long classOrderId);

    //查询会员是否报名该课程
    ClassOrderEntity selectMemberByClassIdAndMemberAccount(ClassOrderEntity classOrder);

    //根据课程 id 查询所有报名的会员
    List<ClassOrderVo> selectMemberOrderList(Long classId);

}
